<template>
  <div
    class="uc-button"
    :style="{background:color}"
    @click="$emit('click', $event)"
  >
    {{text}}
  </div>
</template>

<script>
export default {
  name: 'uc-button',
  props: {
    text: {
      type: String,
      default: '按钮'
    },
    color: {
      type: String,
      default: 'pink'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.uc-button{
  display: block;
  color: #42b983;
  background: crimson;
  line-height: 30px;
  height: 30px;
  border-radius: 10px;
}
</style>
